from selenium import webdriver
import time

driver = webdriver.Chrome()
driver.implicitly_wait(10)
driver.get("http://39.101.167.251/qftest/user/login.html")
driver.maximize_window()
time.sleep(1)
driver.find_element("id", "username").send_keys("test000000")
driver.find_element("id", "password").send_keys("123456")
driver.find_element("xpath", '//*[@id="login-form"]/div/a').click()
driver.find_element("link text", '个人资料').click()
time.sleep(1)
cookie_data = driver.get_cookies()
print(cookie_data)
